<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInLeft">
    <div data-th-replace="common/functionDepict"></div>
    <div>
        <div class="row">
            <div class="creat-step-wrap clearfix">
            </div>
            <!--第一步 开始-->
            <div class="pt10">
                <div class="col-sm-9">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>填写基本信息</h5>
                        </div>
                        <div class="ibox-content clearfix pt10">
                            <div class="form-horizontal">
                                <form id="saveUserFrom">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 学员手机</label>
                                        <div class="col-sm-8">
                                            <input class="form-control validate-data" value="" onkeyup="this.value=this.value.replace(/\D/g,'')" name="mobile" type="text">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"> 学员账号</label>
                                        <div class="col-sm-8">
                                            <input class="form-control validate-data" value="" name="loginAccount" type="text">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"> 学员邮箱</label>
                                        <div class="col-sm-8">
                                            <input class="form-control validate-data" value="" name="email" type="text">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <input type="hidden" name="subjectIds" id="subjectIds" value=""/>
                                        <label class="col-sm-2 control-label"><i class="c-red">*</i> 选择专业</label>
                                        <div class="col-sm-8">
                                            <div id="user-subject-box"></div>
                                            <div id="user-subject-context"></div>
                                            <span class="help-block m-b-none c-999">选择所属专业或去新建</span>
                                        </div>
                                        <div class="col-sm-2 mt10"><a href="javascript:void(0);" onclick="getRedirectMenu(baseloaction+'/admin/manage/subject/toSubjectList')"><i class="fa fa-plus"></i> 新建专业</a></div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 学员登录密码</label>
                                        <div class="col-sm-8">
                                            <div >
                                                <input class="form-control validate-data"   name="password" type="text">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"> 附加课程</label>
                                        <div class="col-sm-8">
                                            <p>
                                                <input type="hidden" id="courseIds"  name="courseIds" value=""/>
                                                <button class="btn btn-primary " id="selectCourse" type="button"><i class="fa fa-plus"></i> &nbsp;选择课程</button>
                                            </p>
                                            <div class="pt10">
                                                <table class="table table-bordered table-hover">
                                                    <thead>
                                                    <tr>
                                                        <th class="text-center">ID</th>
                                                        <th>课程名称</th>
                                                        <th>专业/科目</th>
                                                        <th>价格</th>
                                                        <th class="text-center">操作</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody id="course-content">

                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>

                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-10 col-sm-offset-2">
                                            <button class="btn btn-primary ml10" id="submitUserFrom" type="button">保存</button>
                                            <button class="btn btn-white ml10" type="button" id="onBack">取消</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <div data-th-replace="common/importantNotes"></div>
                <div data-th-replace="layout/head-footer"></div>
            </div>
            <!--第一步 结束-->
        </div>
    </div>
</div>
<script type="text/javascript" th:src="@{{path}/admin/business/course/cou/select-common-course.js?v={v}(path=${staticPath},v=${v})}"></script>
<script type="text/javascript" th:src="@{{path}/admin/business/user/common/userutils.js?v={v}(path=${staticPath},v=${v})}"> </script>
<script type="text/javascript" th:src="@{{path}/admin/business/user/user/user_create.js?v={v}(path=${staticPath},v=${v})}"> </script>
</body>
</html>
